home *** CD-ROM | disk | FTP | other *** search
- Path: southwind.net!usenet
- From: kurtg@southwind.net (Kurt Graber)
- Newsgroups: comp.lang.c++
- Subject: for loop question
- Date: 31 Jan 1996 04:16:39 GMT
- Organization: SouthWind Internet Access, Inc.
- Message-ID: <4emqf8$470@opal.southwind.net>
- NNTP-Posting-Host: onyx.southwind.net
- X-Newsreader: WinVN 0.91.6
-
- I am currently learning c++ so maybe you gurus can answer this
- also I am using borland turbo c++ 3.0
- I can't get the following code to give me any output.
-
- #include <iostream.h>
-
- void main (void)
- {
- int a;
- for(a = 0;a == 10;a++)
- {
- cout << "anything";
- }
- }
-
- ///If I change the loop to for(a=0;a<=10;a++)
- the program will work fine.
- why?????????
- thanks
- kurt
-
-